package com.ly.datacenter.component.treeview.pojo;

import java.util.List;
import java.util.Map;

/**
 * function：
 * 
 * @author watson email: watson.wu@hotmail.com
 * @date 2009-9-7
 */
public class TreeNode {

	private String id;
	private String state;//open, closed, 'nothing'
	private String icon;
	private String title;
	private List<TreeNode> children;
	private Map<String, Object> data;//can add attributes which can include all attributes W3C has or none(be implemented logic by developer) 

	public TreeNode() {
	}

	public TreeNode(String id, String state, String icon, String title,
			List<TreeNode> children, Map<String, Object> data) {
		this.id = id;
		this.state = state;
		this.icon = icon;
		this.title = title;
		this.children = children;
		this.data = data;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}

	public Map<String, Object> getData() {
		return data;
	}

	public void setData(Map<String, Object> data) {
		this.data = data;
	}

}
